#ifndef WIDGET_H
#define WIDGET_H
#include <QWidget>
#include <QPainter>//画家类
#include <QColorDialog>
namespace Ui
{
    class Widget;
}
class Widget : public QWidget
{
    Q_OBJECT
public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();
protected:
    void paintEvent(QPaintEvent *event);
private slots:
private:
    int posX = 0;
    Ui::Widget *ui;
};
#endif // WIDGET_H
